package com.softserveinc.autorent.controller;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import com.softserveinc.autorent.model.Car;
import com.softserveinc.autorent.model.User;

@Stateless
public class UserController 
{
	@EJB
	private UserManager carManager;
	
	
	public void create(User c)
	{
		carManager.create(c);
	}
	
	public User read(int id)
	{
		return carManager.read(id);
	}
	
	public void update(User c)
	{
		carManager.update(c);
	}
	
	public void delete(int id)
	{
		 carManager.delete(id);
	}
	
	public void delete(User c)
	{
		 carManager.delete(c);
	}
	    
}
